package com.b2b2c.store.sharding.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.b2b2c.store.sharding.entity.DbGoods;

@Mapper
public interface DbGoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DbGoods record);

    DbGoods selectByPrimaryKey(Integer id);

    List<DbGoods> selectAll();

    int updateByPrimaryKey(DbGoods record);
    
    List<DbGoods> getDataList(Map<String, String> args);
    
    /**
     * 获取数量
     * @param args
     * @return
     */
    int count(Map<String, String> args);
    Map<String, Integer> goodsTotal(Integer storeId);
}